package com.atwbj.langchain4jbeta3learndemo.bean;

import dev.langchain4j.model.input.structured.StructuredPrompt;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@StructuredPrompt("根据中国{{legal}}法律，解答以下问题：{{question}}")
public class LawPrompt {
    private String legal;//属性值 对应 {{legal}} 的值
    private String question;//属性值 对应 {{question}} 的值

    public String getLegal() {
        return legal;
    }

    public void setLegal(String legal) {
        this.legal = legal;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }
}